.yui3-g.bbottom(ng-controller='App.LoginTypeCtrl')
	.yui3-u-1-2.lrtab(ng-class='{active: logintype==1}', ng-click='$parent.logintype=1') 广发通
	.yui3-u-1-2.lrtab(ng-class='{active: logintype==2}', ng-click='$parent.logintype=2')
		.vl.pull-left
		| 交易用户
div(ng-switch='logintype')
	iframe.hideiframe(src='blank.html', name='loginiframe')
	form.newlogin(name='loginform', 
				ng-switch-when='1', 
				action='{{form.login_uri}}',
				ng-controller='App.LoginCtrl',
				target='loginiframe',
				method='POST')
		.nc.pad10(ng-show='error', ng-bind='error')
		input(type='hidden', name='error_url', gf-value="{{path}}")
		input(type='hidden', name='login_type', value='portal')
		.field
			label(for='newlogin_username', ng-hide='username.length') 手机号/邮箱/用户名
			input(type='text', id='newlogin_username', name='user_id', ng-model='username', required)
		.field
			label(for='newlogin_password', ng-hide='password.length') 密码
			input(type='password', id='newlogin_password', name='password', ng-model='password', required)
		.yui3-g
			.yui3-u-1-2
				.field
					label(for='newlogin_verify', ng-hide='verify.length') 验证码
					input(type='text', id='newlogin_verify', name='ticket', ng-model='verify', maxlength=4, required)
			.yui3-u-1-2.tar
				img(ng-src='{{captcha_uri}}', alt='验证码', height=38, width=100)
		.mtop8
			a(href='#',onclick="return false;", ng-click='refresh()').bc 看不清楚
		.mtop8
			input(type='submit', value='登 录', ng-disabled='!loginform.$valid').submit.formBtn
			a.formBtn(href='#/register', style='margin-left:10px;') 注 册
		.mtop5
			a(href='#/pwdreset').mrem.bc 忘记密码？
			//- a.link(href='#/register') 免费注册
	
	form.newlogin(name='loginform', 
				ng-switch-when='2', 
				action='{{form.login_uri}}',
				ng-controller='App.LoginCtrl',
				gf-submit='beforeSubmit',
				target='loginiframe',
				method='POST')
		.nc.pad10(ng-show='error', ng-bind='error')
		input(type='hidden', name='login_type', value='trade')
		input(type='hidden', name='error_url', gf-value='{{path}}')
		.field
			label(for='newlogin_username', ng-hide='username.length') 客户编号
			input(type='text', id='newlogin_username', name='user_id', ng-model='username', required)
		.field
			label(for='newlogin_password', ng-hide='password.length') 密码
			input(type='password', id='newlogin_password', name='password', ng-model='password', required)
		.yui3-g
			.yui3-u-1-2
				.field
					label(for='newlogin_verify', ng-hide='verify.length') 验证码
					input(type='text', id='newlogin_verify', name='ticket', ng-model='verify', maxlength=4, required)
			.yui3-u-1-2.tar
				img(ng-src='{{captcha_uri}}', alt='验证码', height=38, width=100)
		.mtop8
			a(href='#',onclick="return false;", ng-click='refresh()').bc 看不清楚
		.mtop8
			input(type='submit', ng-click='submit()', value='登 录', ng-disabled='!loginform.$valid').submit.formBtn
			a.formBtn(href='http://www.gf.com.cn/yykh/index.jsp', style='margin-left:10px;') 开 户
		.mtop5
			a(href='#/pwdreset').mrem.bc 忘记密码？
			//- a.link(href='#/register') 免费注册
